home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeennnndddd((((3333TTTTkkkk)))) sssseeeennnndddd((((3333TTTTkkkk))))
-
-
-
- NNNNAAAAMMMMEEEE
- send - Execute a command in a different application
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- sssseeeennnndddd ????_o_p_t_i_o_n_s? _a_p_p _c_m_d ?_a_r_g _a_r_g ...? |
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This command arranges for _c_m_d (and _a_r_gs) to be executed in the
- application named by _a_p_p. It returns the result or error from that
- command execution. _A_p_p may be the name of any application whose main
- window is on the display containing the sender's main window; it need
- not be within the same process. If no _a_r_g arguments are present, then
- the command to be executed is contained entirely within the _c_m_d argument.
- If one or more _a_r_gs are present, they are concatenated to form the
- command to be executed, just as for the eeeevvvvaaaallll command.
-
- If the initial arguments of the command begin with ``-'' they are treated
- as options. The following options are currently defined:
-
- ----aaaassssyyyynnnncccc
- Requests asynchronous invocation. In this case the sssseeeennnndddd command |
- will complete immediately without waiting for _c_m_d to complete in the|
- target application. If the target application is in the same |
- process as the sending application then the ----aaaassssyyyynnnncccc option is |
- ignored.
-
- ----ddddiiiissssppppllllaaaayyyyooooffff _p_a_t_h_N_a_m_e
- Specifies that the target application's main window is on the |
- display of the window given by _p_a_t_h_N_a_m_e, instead of the display |
- containing the application's main window.
-
- -------- Serves no purpose except to terminate the list of options. This |
- option is needed only if _a_p_p could contain a leading ``-'' |
- character.
-
-
- AAAAPPPPPPPPLLLLIIIICCCCAAAATTTTIIIIOOOONNNN NNNNAAAAMMMMEEEESSSS
- The name of an application is set initially from the name of the program
- or script that created the application. You can query and change the
- name of an application with the ttttkkkk aaaappppppppnnnnaaaammmmeeee command.
-
-
- DDDDIIIISSSSAAAABBBBLLLLIIIINNNNGGGG SSSSEEEENNNNDDDDSSSS
- If the sssseeeennnndddd command is removed from an application (e.g. with the
- command rrrreeeennnnaaaammmmeeee sssseeeennnndddd {{{{}}}}) then the application will not respond to incoming
- send requests anymore, nor will it be able to issue outgoing requests.
- Communication can be reenabled by invoking the ttttkkkk aaaappppppppnnnnaaaammmmeeee command.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- sssseeeennnndddd((((3333TTTTkkkk)))) sssseeeennnndddd((((3333TTTTkkkk))))
-
-
-
- SSSSEEEECCCCUUUURRRRIIIITTTTYYYY
- The sssseeeennnndddd command is potentially a serious security loophole, since any
- application that can connect to your X server can send scripts to your
- applications. These incoming scripts can use Tcl to read and write your
- files and invoke subprocesses under your name. Host-based access control
- such as that provided by xxxxhhhhoooosssstttt is particularly insecure, since it allows
- anyone with an account on particular hosts to connect to your server, and
- if disabled it allows anyone anywhere to connect to your server. In
- order to provide at least a small amount of security, Tk checks the
- access control being used by the server and rejects incoming sends unless
- (a) xxxxhhhhoooosssstttt-style access control is enabled (i.e. only certain hosts can
- establish connections) and (b) the list of enabled hosts is empty. This
- means that applications cannot connect to your server unless they use
- some other form of authorization such as that provide by xxxxaaaauuuutttthhhh.
-
-
- KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
- application, name, remote execution, security, send
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-